package com.twohand.utils.Response;

import lombok.Data;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Data
public class BaseException extends RuntimeException{
    private int code;
    private String message;
    public Logger log = LoggerFactory.getLogger(BaseException.class);
    public BaseException(int code,String message){
        this.code = code;
        this.message = message;
        log.error("异常抛出："+code+"--"+message);
    }
}
